package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;

/**
 * 员工业务接口
 */
public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * 员工分页
     * @param employeePageQueryDTO
     * @return
     */
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 修改员工
     * @param employeeDTO
     */
    void modifyEmployee(EmployeeDTO employeeDTO);

    /**
     * 根据id查找员工
     * @param id
     * @return
     */
    Employee findingEmployee(Long id);

    /**
     * 修改员工状态
     * @param status
     * @param id
     */
    void modifyEmployeeAccountStatus(Integer status,Long id);
}
